package com.df.ez_game.server.logic.status_sync.controllers.entity;

/**
 * 移动请求类 - 客户端发送的移动命令
 */
public class MoveReq {
    private float dx;         // X方向向量
    private float dy;         // Y方向向量
    private boolean isMoving; // 是否在移动
    private long clientFrame; // 客户端帧号
    private long timestamp;   // 客户端时间戳
    
    // Getters and Setters
    public float getDx() {
        return dx;
    }
    
    public void setDx(float dx) {
        this.dx = dx;
    }
    
    public float getDy() {
        return dy;
    }
    
    public void setDy(float dy) {
        this.dy = dy;
    }
    
    public boolean isMoving() {
        return isMoving;
    }
    
    public void setMoving(boolean moving) {
        isMoving = moving;
    }
    
    public long getClientFrame() {
        return clientFrame;
    }
    
    public void setClientFrame(long clientFrame) {
        this.clientFrame = clientFrame;
    }
    
    public long getTimestamp() {
        return timestamp;
    }
    
    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
    
    @Override
    public String toString() {
        return "MoveReq{" +
                "dx=" + dx +
                ", dy=" + dy +
                ", isMoving=" + isMoving +
                ", clientFrame=" + clientFrame +
                "}";
    }
}
